package com.caigou.modules.query.ext

/**
 * @author #Suyghur.
 * Created on 2021/12/24
 */


//fun getBalls(idx: Int, prizeBalls: HashMap<Int, MutableList<PrizeBallBean>>): MutableList<PrizeBallBean> {
//  return  when (idx) {
//        PrizeBallIdx.DA->prizeBalls[]
//    }
//}

//fun prizeBalls(balls: HashMap<Int, MutableList<PrizeBallBean>>, single: SparseBooleanArray, multi: SparseBooleanArray) {
//    var singleCheckBalls = mutableListOf<PrizeBallBean>()
//    var multiCheckBalls = mutableListOf<PrizeBallBean>()
//    if (single.isNotEmpty()) {
//        for (idx in balls.keys) {
//            val idxBalls = balls[idx]
//            val checkStatus = single[idx]
//            Logger.d("$idx ,$checkStatus")
//            if (!idxBalls.isNullOrEmpty() && checkStatus) {
//                singleCheckBalls = cmpBalls(idxBalls, singleCheckBalls)
//            }
//        }
//    }
//    for (ball in singleCheckBalls) {
//        Logger.d(ball.number)
//    }
//}
//
//private fun cmpBalls(balls1: MutableList<PrizeBallBean>, balls2: MutableList<PrizeBallBean>): MutableList<PrizeBallBean> {
//    val result = mutableListOf<PrizeBallBean>()
//    result.addAll(balls1)
//    if (balls2.isNotEmpty()) {
//        result.retainAll(balls2)
//    }
//    return result
//}

object PrizeBallIdx {
    const val DAN = 0
    const val SHUANG = 1
    const val DA = 2
    const val XIAO = 3
    const val DA_DAN = 4
    const val DA_SHUANG = 5
    const val XIAO_DAN = 6
    const val XIAO_SHUANG = 7
    const val HE_DAN = 8
    const val HE_SHUANG = 9
    const val HE_DA = 10
    const val HE_XIAO = 11
    const val JIN = 12
    const val MU = 13
    const val SHUI = 14
    const val HUO = 15
    const val TU = 16
    const val HONG = 17
    const val LAN = 18
    const val LV = 19
    const val JIA_QIN = 20
    const val YE_SHOU = 21
    const val HONG_DAN = 22
    const val HONG_SHUANG = 23
    const val LAN_DAN = 24
    const val LAN_SHUANG = 25
    const val LV_DAN = 26
    const val LV_SHUANG = 27
    const val SHU = 28
    const val NIU = 29
    const val HU = 30
    const val TUZI = 31
    const val LONG = 32
    const val SHE = 33
    const val MA = 34
    const val YANG = 35
    const val HOU = 36
    const val JI = 37
    const val GOU = 38
    const val ZHU = 39
    const val WEI0 = 40
    const val WEI1 = 41
    const val WEI2 = 42
    const val WEI3 = 43
    const val WEI4 = 44
    const val WEI5 = 45
    const val WEI6 = 46
    const val WEI7 = 47
    const val WEI8 = 48
    const val WEI9 = 49
    const val DA_WEI = 50
    const val XIAO_WEI = 51
    const val TOU0 = 52
    const val TOU1 = 53
    const val TOU2 = 54
    const val TOU3 = 55
    const val TOU4 = 56
    const val MEN1 = 57
    const val MEN2 = 58
    const val MEN3 = 59
    const val MEN4 = 60
    const val MEN5 = 61
    const val DUAN1 = 62
    const val DUAN2 = 63
    const val DUAN3 = 64
    const val DUAN4 = 65
    const val DUAN5 = 66
    const val DUAN6 = 67
    const val DUAN7 = 68
    const val HE1 = 69
    const val HE2 = 70
    const val HE3 = 71
    const val HE4 = 72
    const val HE5 = 73
    const val HE6 = 74
    const val HE7 = 75
    const val HE8 = 76
    const val HE9 = 77
    const val HE10 = 78
    const val HE11 = 79
    const val HE12 = 80
    const val HE13 = 81
    const val TOU_DAN0 = 82
    const val TOU_DAN1 = 83
    const val TOU_DAN2 = 84
    const val TOU_DAN3 = 85
    const val TOU_DAN4 = 86
    const val TOU_SHUANG0 = 87
    const val TOU_SHUANG1 = 88
    const val TOU_SHUANG2 = 89
    const val TOU_SHUANG3 = 90
    const val TOU_SHUANG4 = 91
}